<template>
  <div>
    <div class="ct" v-for="(item,index) in this.income" :key="index">
      {{item.month}}月
      <span style="color: blue">{{item.income}}</span>
    </div>
  </div>
</template>

<script>
import { getCustView } from "@/request/api";
export default {
  props: ["id"],
  data() {
    return {
      income: [],
    };
  },
  created() {
    getCustView({
      id: this.id,
    }).then((res) => {
      console.log("sss", res.data.datas[1]);
        this.income = res.data.datas[1].data;
    });
  },
};
</script>

<style scoped>
.ct{
    margin: 0.5rem auto 0;
    width: 95%;
    height: 4rem;
    padding: 1.2rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    background: #fff;
}
</style>